/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import slcu.model.Coordinador;

import java.io.Serializable;

/**
 * The cache model class for representing Coordinador in entity cache.
 *
 * @author tito
 * @see Coordinador
 * @generated
 */
public class CoordinadorCacheModel implements CacheModel<Coordinador>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(9);

		sb.append("{coordinadorId=");
		sb.append(coordinadorId);
		sb.append(", nombre=");
		sb.append(nombre);
		sb.append(", region=");
		sb.append(region);
		sb.append(", mail=");
		sb.append(mail);
		sb.append("}");

		return sb.toString();
	}

	public Coordinador toEntityModel() {
		CoordinadorImpl coordinadorImpl = new CoordinadorImpl();

		coordinadorImpl.setCoordinadorId(coordinadorId);

		if (nombre == null) {
			coordinadorImpl.setNombre(StringPool.BLANK);
		}
		else {
			coordinadorImpl.setNombre(nombre);
		}

		if (region == null) {
			coordinadorImpl.setRegion(StringPool.BLANK);
		}
		else {
			coordinadorImpl.setRegion(region);
		}

		if (mail == null) {
			coordinadorImpl.setMail(StringPool.BLANK);
		}
		else {
			coordinadorImpl.setMail(mail);
		}

		coordinadorImpl.resetOriginalValues();

		return coordinadorImpl;
	}

	public long coordinadorId;
	public String nombre;
	public String region;
	public String mail;
}